Skip to content

Conversation

@copybara-service
Copy link

Fixed *args and **kwargs handling in the functools overlay

pytype is sometimes able to convert args/kwargs to positional/keyword arguments.
The functools overlay did not account for that prior to this change, and ended
up passing the same arguments twice!

See added test case for a minimal repro.

@copybara-service copybara-service bot force-pushed the cl/821665368 branch 2 times, most recently from 73a4d38 to b4a8a10 Compare October 21, 2025 21:42
pytype is sometimes able to convert args/kwargs to positional/keyword arguments.
The functools overlay did not account for that prior to this change, and ended
up passing the same arguments twice!

See added test case for a minimal repro.

PiperOrigin-RevId: 822295276
@copybara-service copybara-service bot merged commit 68ece50 into main Oct 21, 2025
@copybara-service copybara-service bot deleted the cl/821665368 branch October 21, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant